{  Statement: http://acmp.ru/?main=task&id_task=340
   Verdict: Accepted
}
uses
    SysUtils, Math;

const
    EQ = 'Boxes are equal';
    ONE = 'The first box is larger than the second one';
    TWO = 'The first box is smaller than the second one';
    BAD = 'Boxes are incomparable';

var
    a,b:array[0..5] of longint;

procedure sortA(l,r:longint);

var
    i,j,x,y:longint;

begin
i := l;
j := r;
x := a[(l + r) shr 1];
repeat
    while a[i] < x do inc(i);
    while a[j] > x do dec(j);
    if i <= j then begin
        y := a[i];
        a[i] := a[j];
        a[j] := y;
        inc(i);
        dec(j);
    end;
until i > j;
if l < j then sortA(l, j);
if i < r then sortA(i, r);
end;

procedure sortB(l,r:longint);

var
    i,j,x,y:longint;

begin
i := l;
j := r;
x := b[(l + r) shr 1];
repeat
    while b[i] < x do inc(i);
    while b[j] > x do dec(j);
    if i <= j then begin
        y := b[i];
        b[i] := b[j];
        b[j] := y;
        inc(i);
        dec(j);
    end;
until i > j;
if l < j then sortB(l, j);
if i < r then sortB(i, r);
end;

begin
reset(input, 'input.txt');
rewrite(output, 'output.txt');
read(a[1], a[2], a[3], b[1], b[2], b[3]);
sortA(1, 3);
sortB(1, 3);
if (a[1] = b[1]) and (a[2] = b[2]) and (a[3] = b[3]) then write(EQ) else
if (a[1] <= b[1]) and (a[2] <= b[2]) and (a[3] <= b[3]) then write(TWO) else
if (a[1] >= b[1]) and (a[2] >= b[2]) and (a[3] >= b[3]) then write(ONE) else write(BAD);
end.